//
//  UIViewController+Extension.m
//  DSJY
//
//  Created by 冯华强 on 16/9/24.
//  Copyright © 2016年 dsjy. All rights reserved.
//

#import "UIViewController+Extension.h"
#import "UIBarButtonItem+Extension.h"

@implementation UIViewController (Extension)

#pragma mark - 设置UI
- (void)setupBackBarItem
{
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemMapWithTarget:self action:@selector(back) image:@"icon_back" selectImage:@"icon_back_highlighted"];
}

- (void)back
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
